Skip to content

chore(deps): update aura/input requirement from ^1.2 to ^7.0 - #39

Closed
dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/aura/input-tw-7.0
Closed

dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/aura/input-tw-7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 29, 2026

Copy link
Copy Markdown

Updates the requirements on aura/input to permit the latest version.

Release notes

Sourced from aura/input's releases.

7.0.0

Breaking Changes

  • PHP 8.4+ is now required (up from PHP >= 5.6 in the last released 2.x line).
  • License changed from BSD to MIT.
  • Removed aura/installer-default from composer.json.
  • Removed Aura.Di configuration files.
  • Filter::apply() no longer mutates $values by reference and no longer returns bool. It now accepts array|object by value and returns a FilterResultInterface containing the success flag, the values, and a FailureCollectionInterface. See the upgrade guide for migration details.
  • Fieldset::filter() and Collection::filter() now return bool with an explicit return-type declaration; getFailures() now returns Aura\Filter_Interface\FailuresInterface (typed).
  • Collection::getFailures() now returns a flat FailuresInterface keyed with dot-notation paths (e.g. "0.email") instead of a nested array.
  • CollectionIterator methods (current(), key(), next(), rewind(), valid()) now carry explicit return-type declarations; properties are typed.
  • All classes now declare strict_types=1 and use full PHP 8.x type declarations throughout.
  • Removed Aura.Di integration — no config/ directory or container configuration is shipped.
  • aura/filter-interface now required at ^7.0 (introduces FilterInterface, FilterResultInterface, FailureCollectionInterface, FailuresInterface, FailureInterface, and FilterResult).
  • CI moved from Travis CI to GitHub Actions; PHPUnit dependency changed from yoast/phpunit-polyfills to phpunit/phpunit: ^11.0.

New Features

  • ADD: Filter\Failure — concrete FailureInterface implementation for closure-based filter rules. Uses PHP 8 readonly constructor-promoted properties. Implements JsonSerializable via FailureInterface.
  • ADD: Filter\FailureCollection — implements the full FailureCollectionInterface (both the write side add() / set() and the read side forField() / forPath() / getMessages() / getNestedMessages()). Stores plain string messages; wraps them in Failure value objects on demand.
  • ADD: FailureCollection::getNestedMessages() — reconstructs a nested array structure from flat dot-notation keys, mirroring the shape of the original input data.
  • ADD: FailureCollection::forPath(string $path) — dot-notation path lookup returning FailureInterface[].
  • ADD: FailureCollection::isEmpty() — returns true when no failures are recorded.
  • ADD: Filter::apply() now returns FilterResultInterface (a FilterResult value object) containing isSuccess(), getValues(), and getFailures().
  • ADD: PHP 8.2, 8.3, 8.4, and 8.5 support added to CI test matrix.
  • ADD: aura/filter-interface package dependency introducing SubjectFilterInterface, FilterResultInterface, FilterResult, and FailureInterface.

Changes

  • CHG: Filter::setRule() and Filter::addRule() parameter types are now string $field, string $message, \Closure $closure (strict types).
  • CHG: Filter::getMessages() parameter is now ?string $field = null (typed); return type is array.
  • CHG: Filter::addMessages() parameter $messages is now string|array (union type).
  • CHG: Fieldset::filter() now consumes FilterResultInterface from Filter::apply() and aggregates nested fieldset/collection failures automatically using dot-notation prefixing.
  • CHG: Fieldset::getFailures() return type is now declared as FailuresInterface.
  • CHG: Collection::fill() return type is now declared as void.
  • CHG: Collection::filter() return type is now declared as bool.
  • CHG: Collection::getFailures() return type is now declared as FailuresInterface.
  • CHG: License header updated to MIT throughout all source files.
  • DOC: README updated with PHP version requirements.
Changelog

Sourced from aura/input's changelog.

7.0.0

Breaking Changes

  • PHP 8.4+ is now required (up from PHP >= 5.6 in the last released 2.x line).
  • License changed from BSD to MIT.
  • Removed aura/installer-default from composer.json.
  • Removed Aura.Di configuration files.
  • Filter::apply() no longer mutates $values by reference and no longer returns bool. It now accepts array|object by value and returns a FilterResultInterface containing the success flag, the values, and a FailureCollectionInterface. See the upgrade guide for migration details.
  • Fieldset::filter() and Collection::filter() now return bool with an explicit return-type declaration; getFailures() now returns Aura\Filter_Interface\FailuresInterface (typed).
  • Collection::getFailures() now returns a flat FailuresInterface keyed with dot-notation paths (e.g. "0.email") instead of a nested array.
  • CollectionIterator methods (current(), key(), next(), rewind(), valid()) now carry explicit return-type declarations; properties are typed.
  • All classes now declare strict_types=1 and use full PHP 8.x type declarations throughout.
  • Removed Aura.Di integration — no config/ directory or container configuration is shipped.
  • aura/filter-interface now required at ^7.0 (introduces FilterInterface, FilterResultInterface, FailureCollectionInterface, FailuresInterface, FailureInterface, and FilterResult).
  • CI moved from Travis CI to GitHub Actions; PHPUnit dependency changed from yoast/phpunit-polyfills to phpunit/phpunit: ^11.0.

New Features

  • ADD: Filter\Failure — concrete FailureInterface implementation for closure-based filter rules. Uses PHP 8 readonly constructor-promoted properties. Implements JsonSerializable via FailureInterface.
  • ADD: Filter\FailureCollection — implements the full FailureCollectionInterface (both the write side add() / set() and the read side forField() / forPath() / getMessages() / getNestedMessages()). Stores plain string messages; wraps them in Failure value objects on demand.
  • ADD: FailureCollection::getNestedMessages() — reconstructs a nested array structure from flat dot-notation keys, mirroring the shape of the original input data.
  • ADD: FailureCollection::forPath(string $path) — dot-notation path lookup returning FailureInterface[].
  • ADD: FailureCollection::isEmpty() — returns true when no failures are recorded.
  • ADD: Filter::apply() now returns FilterResultInterface (a FilterResult value object) containing isSuccess(), getValues(), and getFailures().
  • ADD: PHP 8.2, 8.3, 8.4, and 8.5 support added to CI test matrix.
  • ADD: aura/filter-interface package dependency introducing SubjectFilterInterface, FilterResultInterface, FilterResult, and FailureInterface.

Changes

  • CHG: Filter::setRule() and Filter::addRule() parameter types are now string $field, string $message, \Closure $closure (strict types).
  • CHG: Filter::getMessages() parameter is now ?string $field = null (typed); return type is array.
  • CHG: Filter::addMessages() parameter $messages is now string|array (union type).
  • CHG: Fieldset::filter() now consumes FilterResultInterface from Filter::apply() and aggregates nested fieldset/collection failures automatically using dot-notation prefixing.
  • CHG: Fieldset::getFailures() return type is now declared as FailuresInterface.
  • CHG: Collection::fill() return type is now declared as void.
  • CHG: Collection::filter() return type is now declared as bool.
  • CHG: Collection::getFailures() return type is now declared as FailuresInterface.
  • CHG: License header updated to MIT throughout all source files.
  • DOC: README updated with PHP version requirements.

1.2.1

  • Fixed addMessages behavior in Filter class, see #64

1.2.0

... (truncated)

Commits
  • 1ba38c6 Merge pull request #87 from auraphp/release-7.0.0
  • 02853c3 Require aura/filter-interface ^7.0
  • 4d6b6d5 Merge pull request #84 from auraphp/claude/coderabbit-nitpick-review-vj8xq8
  • 20c431c Merge pull request #86 from auraphp/claude/aura-filter-164-7x-yu0xlv
  • b7f0b8a Store Failure objects in the Input filter's FailureCollection
  • bde3f82 Merge remote-tracking branch 'origin/7.x' into claude/coderabbit-nitpick-revi...
  • 5c88938 Add the shared Release workflow
  • c458779 Merge pull request #83 from auraphp/claude/coderabbit-nitpick-review-vj8xq8
  • bbb2007 Merge pull request #82 from auraphp/version-7
  • 0b4c138 Correct documented PHP requirement and CI matrix
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [aura/input](https://github.com/auraphp/Aura.Input) to permit the latest version.
- [Release notes](https://github.com/auraphp/Aura.Input/releases)
- [Changelog](https://github.com/auraphp/Aura.Input/blob/7.x/CHANGELOG.md)
- [Commits](auraphp/Aura.Input@1.2.0...7.0.0)

---
updated-dependencies:
- dependency-name: aura/input
  dependency-version: 7.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Nov 29, 2026
@koriym

koriym commented Nov 29, 2026

Copy link
Copy Markdown
Member

Closing: Aura 7 requires PHP ^8.4, while 1.x supports PHP 8.0+. Replacing the constraint drops PHP 8.0–8.3, and aura/input 7 and aura/filter 7 also change APIs this package depends on. Aura 7 support will be handled together in a single 2.0 PR.

@koriym koriym closed this Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant